<template>
  <a-button
    :type="type || 'primary'"
    :size="size"
    :ghost="ghost"
    :block="block"
  >
    <component #icon v-if="icon" :is="'i-' + (loading ? 'loading' : icon)" />
    <slot></slot>
  </a-button>
</template>
<script>
export default {
  props: ["type", "icon", "size", "ghost", "block", "loading"],
};
</script>
